Skip to content

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Jan 24, 2020

#53
Generate changelog from commits but it will overwrite the existing file. It now supports --dry-run, --start-rev and --file-name arguments. I also merge the WIP commit you implemented here, but it's not used. They may be useful when we're merging the new changelog with the existing one.

TODO

  • Find out a way to merge changelog with existing file
  • Get the latest version from config and use it as the default of changelog command

Example

The following changelog is an example generated comparing to the master branch.

# CHANGELOG

## Unreleased
### feat
- make changelog_file an option in config
- exit when there is no commit exists
- add --start-rev argument to `cz changelog`
- generate changelog based on git log
- generate changelog_tree from all past commits
- add changelog_map, changelog_pattern and implement process_commit
- add default process_commit for processing commit message
- changelog tree generation from markdown

### fix
- fix list format
- set changelog_map, changelog_pattern to none as default
- remove --skip-merge argument
- add changelog arguments

woile and others added 25 commits January 21, 2020 22:12
it will over write the existing file
…oncatenation to build changelog

* install jinja2
* use named caputure group for changelog_pattern
by default, unrelated commits are ignored
…efault

without this default, getting these attributes will be an error
@Lee-W Lee-W requested a review from woile January 24, 2020 08:45
@woile
Copy link
Member

woile commented Jan 24, 2020

You are the best @Lee-W !! Would you mind sending this PR to the branch command-changelog, I'd also like to contribute to this changes, and once we have it a bit more polish we release it

@Lee-W Lee-W changed the base branch from master to command-changelog January 25, 2020 01:41
@Lee-W
Copy link
Member Author

Lee-W commented Jan 25, 2020

Sure! This workflow makes more sense to me. The changelog seems to be a huge update to me. We should make sure it works well enough before release. 😀

@woile woile merged commit 718b881 into commitizen-tools:command-changelog Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants